<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'backRegister.jsp' starting page</title>
	<script>
	
		$().ready(function(){
			var map = Dialog.getInstance("view").getParam("param");
    		if(map != null)
    		{
    			Form.bindForm("winForm",map);
    		}
		});
		
		
		function doDelete()
    	{
   			if($.trim($("#back_reason").val()) == ""){
   				alert("退号原因不能为空");
   				return;
   			}
   			
   			var map = Form.formToBean("winForm");
			map.id = "${param.id}";
			
			ajax.remoteCall("com.system.dao.RegisterDao:updateStatus",[map],function(reply){
    			var result = reply.getResult();
    			alert(result.value);
    			if(result.type == "success")
    			{
    				var dlg = Dialog.getInstance("view");
 	    			dlg.getParam("window").mygrid.reload();
    			}
    			dlg.close();
    		});
    	}
		
	</script>
  </head>
  
  <body style="overflow: hidden;">
    <form id="winForm" name="winForm">
   		<input name="id" type="hidden" value="${param.id}">
  		<table border="0" cellpadding="0" cellspacing="0" align="center" >
			<tr height="60px" valign="middle">
				<td width="80px" align="right">退号人：</td>
				<td width="140px" align="left"><input id="register_name" name="register_name" type="text" readonly class="textbox" style="width: 120px;color:blue;"/></td>
				<td width="70px" align="center">处理人：</td>
				<td width="140px" align="left"><input id="create_user_name" readonly name="create_user_name" type="text" class="textbox" style="width: 120px;color:blue;"/></td>
			</tr>
			<tr height="60px" valign="middle">
				<td width="80px" align="right" valign="top"><span style="color: red;">*</span>退号原因：</td>
				<td colspan="3">
					<textarea id="back_reason" name="back_reason" rows="8" cols="41"></textarea>
				</td>
			</tr>
			<tr>
				<td width="70px" align="right"><img src="${path}/images/tip.png" border="0" width="20px" height="15px" /></td>
				<td colspan="3"><font color="green" style="font-size: 13px">温馨提示：退号原因必填</font></td>
			</tr>
  		</table>
	</form>
  </body>
</html>
